package cn.edu.zjut.mina.po;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * 用户充值信息记录表
 * @author 张宇翔
 */
@Table(name="t_depositRoomCard")
@Entity
public class DepositRoomCard {
	private Integer autoid;
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date depositRoomCardTime;//购买房卡的时间
	private Integer depositmoney;//充值金额
	private Integer depositRoomCard;//充值的房卡数
	private String nickName;//昵称
	private String unionid;
	private String userId;//用户ID   (即微信号)
	@GeneratedValue
	@Id
	public Integer getAutoid() {
		return autoid;
	}
	public void setAutoid(Integer autoid) {
		this.autoid = autoid;
	}
	public Date getDepositRoomCardTime() {
		return depositRoomCardTime;
	}
	public void setDepositRoomCardTime(Date depositRoomCardTime) {
		this.depositRoomCardTime = depositRoomCardTime;
	}
	public Integer getDepositmoney() {
		return depositmoney;
	}
	public void setDepositmoney(Integer depositmoney) {
		this.depositmoney = depositmoney;
	}
	public Integer getDepositRoomCard() {
		return depositRoomCard;
	}
	public void setDepositRoomCard(Integer depositRoomCard) {
		this.depositRoomCard = depositRoomCard;
	}
	public String getNickName() {
		return nickName;
	}
	public void setNickName(String nickName) {
		this.nickName = nickName;
	}
	public String getUnionid() {
		return unionid;
	}
	public void setUnionid(String unionid) {
		this.unionid = unionid;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
}
